package com.pilot.game.repository;

import com.pilot.game.domain.Favorite;
import org.springframework.stereotype.Repository;

import org.springframework.data.jpa.repository.*;

import java.util.List;


/**
 * Spring Data JPA repository for the Favorite entity.
 */
@SuppressWarnings("unused")
@Repository
public interface FavoriteRepository extends JpaRepository<Favorite, Long> {

    List<Favorite> findByCustomerNameAndFavoritePlan(String customerName, String favoritePlan);

    void deleteByFavoritePlan(String favoritePlan);
}
